class ShimInput < ActiveRecord::Base
  
  acts_as_annotatable
  
  validates_presence_of :name
  
  belongs_to :shim
  
  def services
    service_array = Array.new
    links = ServiceLink.find(:all, :conditions => {:port_type => "ShimInput", :port_id => id})
    links.each do |l|
      service_array << Service.find_by_id(l.service_id)
    end
    return service_array
  end
end
